package com.biz.primus.model.promotion.vo;

import com.biz.primus.model.promotion.enums.PromotionTargetLimitTypeEnum;
import com.google.common.collect.Maps;
import java.io.Serializable;
import java.util.Map;
import lombok.Getter;
import lombok.Setter;

/**
 * 加价换购规则Vo
 *
 * @author david-liu
 */
@Getter
@Setter
public class RaisePriceRedemptionRuleVo implements Serializable {
    private static final long serialVersionUID = 96851716212447499L;

    /**
     * 是否是阶梯折扣
     */
    private Boolean isStairCut;

    /**
     * 按照商品金额/商品数量加价换购
     */
    private PromotionTargetLimitTypeEnum limitType;

    /**
     * 加价规则
     */
    private Map<Integer, Integer> raiseRedemptionRule = Maps.newLinkedHashMap();

    /**
     * 用户一次能换购的数量, 默认是1件商品
     */
    private Integer userOnceRedemptionQuantity = 1;
}
